# Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com>
pkgname=gmbox
pkgver=0.2
pkgrel=1
url="http://li2z.cn/2009/08/02/gmbox-0-1/"
pkgdesc="Google Music Downloader. "
arch=('i686' 'x86_64')
license=('GPL')
makedepends=()
depends=('python' 'gtk' 'pygtk' 'pygobject' 'pycairo' 'python-notify')
provides=('gmbox')
conflicts=()
optdepends=("python-pymedia: A Python library for accessing and manipulating multimedia files")
install=()
source=( http://gmbox.googlecode.com/files/$pkgname-$pkgver.tar.gz)
md5sums=()

build() {
	install -d $pkgdir/usr/bin
	install -d $pkgdir/usr/share/gmbox/{lib,pixbufs,data}
	install -m 0644 $srcdir/$pkgname/pixbufs/*.png $pkgdir/usr/share/gmbox/pixbufs
	install -m 0644 $srcdir/$pkgname/data/config.xml.sample $pkgdir/usr/share/gmbox/data
	install -m 0755 $srcdir/$pkgname/src/{cli,mainwin}.py $pkgdir/usr/share/gmbox/
	install -m 0644 $srcdir/$pkgname/src/{downpage,player,statusbar,tabview,treeview}.py $pkgdir/usr/share/gmbox/
	install -m 0644 $srcdir/$pkgname/src/lib/*.py $pkgdir/usr/share/gmbox/lib
	install -Dm 0644 $srcdir/$pkgname/gmbox.desktop $pkgdir/usr/share/applications/gmbox.desktop
	cd $pkgdir/usr/bin
	ln -sf ../share/gmbox/cli.py ./gmbox
}
